Skip to content

fix: /api/provisioning/token wrong methods return 404 not 405#671

Merged
BrentIO merged 1 commit into
mainfrom
fix/634
Jun 21, 2026
Merged

fix: /api/provisioning/token wrong methods return 404 not 405#671
BrentIO merged 1 commit into
mainfrom
fix/634

Conversation

@BrentIO

@BrentIO BrentIO commented Jun 21, 2026

Copy link
Copy Markdown
Owner

The spec documented 405 for wrong HTTP methods on /api/provisioning/token. Because the route is registered via AsyncCallbackJsonWebHandler with no catch-all, the framework returns 404 for unregistered methods. Changed spec to reflect actual behavior.

The existing '404' entry (for UUID/mac not-found cases) was merged with the new description to avoid a duplicate YAML key, covering both 404 scenarios in one entry.

Closes #634

@BrentIO BrentIO merged commit 506d108 into main Jun 21, 2026
2 checks passed
@BrentIO BrentIO deleted the fix/634 branch June 21, 2026 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Controller spec: POST /api/provisioning/token spec documents 405 but unmatched methods return 404

1 participant